# -*- coding: utf-8 -*-
# @Organization  : asiainfo
# @Author        : 周伟东
# @Time          : 2021/1/7 16:25
# @Function      : 主类

from app import create_app
from app.constants import CONFIG_NAME

app = create_app(CONFIG_NAME)

if __name__ == '__main__':
    import config
    host = config.get_config('SERVER', 'host')
    port = config.get_config('SERVER', 'port')
    debug = config.get_config('SERVER', 'debug')
    app.run(host=host, port=port, debug=debug)
